<?php
use yii\helpers\Html;
use common\components\helpers\Fun;
use doumiaoduo\layer\LayerConfirmWidget;
use doumiaoduo\layer\LayerIframeWidget;
LayerConfirmWidget::widget();
LayerIframeWidget::widget();

use common\components\extenders\MenuManage;
?>
<div class="yx-praise-list-box yx-praise-box yx-radius2 zx-min-height" id="toolbar" data-shelve_url="<?=\common\components\helpers\Fun::url(['goodsskill/shelve'])?>" data-role="<?=Yii::$app->user->identity->role?>">
    <?php if(isset(\Yii::$app->user->identity->role) && \Yii::$app->user->identity->role!='finance') { ?>
    <div>
        <?='<div class="yx-padding-bb">'.(new MenuManage(MenuManage::TOOLBAR,$model))->create().'<div class="yx-clear"></div></div>'?>
    </div>
    <?php } ?>
  <div class="docs-main zx-mg">
      <div style="padding: 0">
          <h3 style="padding-left:15px;"><?=$model->name?>-价格详情</h3>
      </div>
      <table id="tablesaw" class="tablesaw table yx-table1 yx-table3 table-striped with-check"  data-tablesaw-mode="swipe" data-tablesaw-minimap >
       <thead>
            <tr class="yx-bgd2f6ec">
                <th><?=\Yii::t('zhtfrontend','价格名称');?></th>
                <th><?=\Yii::t('zhtfrontend','课次数');?></th>
                <th><?=\Yii::t('zhtfrontend','活动价');?></th>
                <th><?=\Yii::t('zhtfrontend','原价');?></th>
                <th><?=\Yii::t('zhtfrontend','分成方式');?></th>
                <th><?=\Yii::t('zhtfrontend','分成金额/比例');?></th>
                <th><?=\Yii::t('zhtfrontend','补贴方式');?></th>
                <th><?=\Yii::t('zhtfrontend','补贴金额');?></th>
                <th><?=\Yii::t('zhtfrontend','是否支持奖学金');?></th>
                <th><?=\Yii::t('zhtfrontend','使用奖学金金额');?></th>
                <th><?=\Yii::t('zhtfrontend','微信端状态');?></th>
                <th><?=\Yii::t('zhtfrontend','后台状态');?></th>
                <th><?=\Yii::t('zhtfrontend','操作');?></th>
            </tr>
        </thead>
          <?php if($data):?>
               <?php foreach($data as $item):?>
                  <tr data-id="<?=$item['id']?>">
                      <td><?=$item['price_name']?></td>
                      <td><?=$item['is_frequency']==1?$item['lesson']:'不限课次';?></td>
                      <td><?=$item['lesson_price']?></td>
                      <td><?=$item['market_price']?></td>
                      <td><?=$item['distribution_way']?></td>
                      <td><?=$item['distribution_proportion']?></td>
                      <td><?=$item['subsidy_type']?></td>
                      <td><?=$item['subsidy_money']?></td>
                      <td><?=$item['is_scholarship']?></td>
                      <td><?=$item['scholarship']?></td>
                      <td><?=$item['status']?></td>
                      <td><?=$item['back_status']?></td>
                      <td><?=$item['operate']?></td>
                  </tr>
                  <?php endforeach?>
         <?php endif?>
    </table>
  </div>
</div>


